{php header("Content-type:text/xml"); echo "<?xml version='1.0' encoding='UTF-8'?>"; }

<urlset>					
{navigation navigation as $vo }
  {if isset($vo['data'])}
           {foreach $vo.data as $svo }
<url>
<loc><![CDATA[{@to($svo)}]]></loc>
{if isset($svo['add_time'])}
<lastmod>{@date('Y-m-d',$svo['add_time'])}</lastmod>
{/if}
<changefreq>{$svo.name}</changefreq>
</url>

			      {if $svo['template']!='page'}  
			        {exhibition => ("table":"{$svo['template']}", "by":"sort" , "sort":"ASC","begin":0,"rows":"1000","where":" pid={$svo['id']}  ")as$v}			   
<url>
<loc><![CDATA[{@jmp('zh',$v['static_url'])}]]></loc>
{if isset($v['add_time'])}
<lastmod>{@date('Y-m-d',$v['add_time'])}</lastmod>
{/if}
<changefreq>{$v.name}</changefreq>
</url> 
			         {/exhibition}
				  {/if} 
            {/foreach}
	  {else}
<url>
<loc><![CDATA[{@to($vo)}]]></loc>
{if isset($vo['add_time'])}
<lastmod>{@date('Y-m-d',$vo['add_time'])}</lastmod>
{/if}
<changefreq>{$vo.name}</changefreq>
</url>
	  {/if}
  {/navigation}
  
  
			
  
</urlset>
